.class Llt/noframe/gpsfarmguide/views/FragmentSettings$7$1;
.super Ljava/lang/Object;
.source "FragmentSettings.java"

# interfaces
.implements Llt/noframe/gpsfarmguide/dialogs/GpsCorrectionsChooserDialog$OnSetListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Llt/noframe/gpsfarmguide/views/FragmentSettings$7;->onPreferenceClick(Landroid/preference/Preference;)Z
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$1:Llt/noframe/gpsfarmguide/views/FragmentSettings$7;


# direct methods
.method constructor <init>(Llt/noframe/gpsfarmguide/views/FragmentSettings$7;)V
    .locals 0

    .line 298
    iput-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentSettings$7$1;->this$1:Llt/noframe/gpsfarmguide/views/FragmentSettings$7;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onSet(D)V
    .locals 4

    .line 301
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentSettings$7$1;->this$1:Llt/noframe/gpsfarmguide/views/FragmentSettings$7;

    iget-object v0, v0, Llt/noframe/gpsfarmguide/views/FragmentSettings$7;->this$0:Llt/noframe/gpsfarmguide/views/FragmentSettings;

    invoke-static {v0}, Llt/noframe/gpsfarmguide/views/FragmentSettings;->access$000(Llt/noframe/gpsfarmguide/views/FragmentSettings;)Llt/noframe/gpsfarmguide/analytics/FireAnalytics;

    move-result-object v0

    invoke-virtual {v0, p1, p2}, Llt/noframe/gpsfarmguide/analytics/FireAnalytics;->sendSettingGpsAntennaDistance(D)V

    .line 302
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentSettings$7$1;->this$1:Llt/noframe/gpsfarmguide/views/FragmentSettings$7;

    iget-object v0, v0, Llt/noframe/gpsfarmguide/views/FragmentSettings$7;->this$0:Llt/noframe/gpsfarmguide/views/FragmentSettings;

    invoke-virtual {v0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    invoke-static {v0, p1, p2}, Llt/noframe/gpsfarmguide/utils/Preferences;->setImplementLocation(Landroid/content/Context;D)V

    .line 303
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentSettings$7$1;->this$1:Llt/noframe/gpsfarmguide/views/FragmentSettings$7;

    iget-object p1, p1, Llt/noframe/gpsfarmguide/views/FragmentSettings$7;->this$0:Llt/noframe/gpsfarmguide/views/FragmentSettings;

    iget-object p1, p1, Llt/noframe/gpsfarmguide/views/FragmentSettings;->implement_location:Landroid/preference/Preference;

    new-instance p2, Ljava/lang/StringBuilder;

    invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentSettings$7$1;->this$1:Llt/noframe/gpsfarmguide/views/FragmentSettings$7;

    iget-object v0, v0, Llt/noframe/gpsfarmguide/views/FragmentSettings$7;->this$0:Llt/noframe/gpsfarmguide/views/FragmentSettings;

    iget-object v1, v0, Llt/noframe/gpsfarmguide/views/FragmentSettings;->f:Ljava/text/DecimalFormat;

    invoke-virtual {v0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    invoke-static {v0}, Llt/noframe/gpsfarmguide/utils/Preferences;->getImplementLocation(Landroid/content/Context;)D

    move-result-wide v2

    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentSettings$7$1;->this$1:Llt/noframe/gpsfarmguide/views/FragmentSettings$7;

    iget-object v0, v0, Llt/noframe/gpsfarmguide/views/FragmentSettings$7;->this$0:Llt/noframe/gpsfarmguide/views/FragmentSettings;

    .line 304
    invoke-virtual {v0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    invoke-static {v0}, Llt/noframe/gpsfarmguide/utils/Preferences;->getGpsAccuracyUnit(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    .line 303
    invoke-static {v2, v3, v0}, Llt/noframe/gpsfarmguide/utils/Mathematics;->convertAccuracy(DLjava/lang/String;)D

    move-result-wide v2

    invoke-virtual {v1, v2, v3}, Ljava/text/DecimalFormat;->format(D)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v0, " "

    invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentSettings$7$1;->this$1:Llt/noframe/gpsfarmguide/views/FragmentSettings$7;

    iget-object v0, v0, Llt/noframe/gpsfarmguide/views/FragmentSettings$7;->this$0:Llt/noframe/gpsfarmguide/views/FragmentSettings;

    .line 305
    invoke-virtual {v0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    invoke-static {v0}, Llt/noframe/gpsfarmguide/utils/Preferences;->getGpsAccuracyUnit(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v0, "."

    invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    .line 303
    invoke-virtual {p1, p2}, Landroid/preference/Preference;->setSummary(Ljava/lang/CharSequence;)V

    return-void
.end method
